﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 生产订单产品
    /// </summary>

    [SugarTable("ProduceOrderDetail")]
    public class ProduceOrderDetail : Audit
    {
        /// <summary>
        /// 生产产品id
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]//自增主键
        public int? PPId { get; set; }
        /// <summary>
        /// 生产订单id
        /// </summary>
        public string? POId { get; set; }
        /// <summary>
        /// 订单数量
        /// </summary>
        public int? POrderNum { get; set; }
        /// <summary>
        /// 生产类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? ProductionType { get; set; }
        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime? PStartTime { get; set; }
        /// <summary>
        /// 完工日期
        /// </summary>
        public DateTime? PCompletionDate { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public DateTime ? PDeliveryDate { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 生产计划id
        /// </summary>
        public int? ProductionPlansId { get; set; }



    }
}
